/*
 * @Author: cl
 * @Description: mock
 * @Date: 2023-05-17 15:57:05
 * @LastEditTime: 2023-05-17 18:00:27
 * @FilePath: \vue3scaffold\vite\plugins\mock.ts
 * @LastEditors: cl
 */
import { viteMockServe } from "vite-plugin-mock";

export default function setMock(isBuild: boolean) {
  
  return viteMockServe({
    mockPath: 'mock',
    // According to the project configuration. Can be configured in the .env file
    // enable: !isBuild,
    localEnabled: !isBuild,
  })
}
